package com.fastmobile.dao;

import java.text.ParseException;
import java.util.Date;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.fastmobile.entity.HAWB;
import com.fastmobile.entity.TransactionDetails;
import com.fastmobile.entity.Transactions;

public interface TransactionsDAO {
	
	public Transactions saveTransaction(Transactions transaction);
	public void deleteTransactionById(String id);
	public Transactions getTransactionById(String id);
	public List<Transactions> getAllTransaction();
	public List<Transactions> getTransactionByQuantity(int quantity);
	public List<Transactions> getLockedTransactionByQuantity(int quantity);
	public List<JSONObject> getJsonLockedTransaction(int quantity) throws JSONException;
	public void unlockDocumentTransactionById(String id, Date date, String reason);
	public void lockDocumentTransactionById(String id, Date date, String reason);
	public void unlockLogisticsTransactionById(String id, Date date, String reason);
	public void lockLogisticsTransactionById(String id, Date date, String reason);
	public void unlockAccsTransactionById(String id, Date date, String reason);
	public void lockAccsTransactionById(String id, Date date, String reason);
	public void lockShipmentTransactionById(String id, Date date, String reason);
	public void unlockShipmentTransactionById(String id, Date date, String reason);
	public void changeJobCreator(String id, String creator, Date date, String reason);
	TransactionDetails getDetailTransactionsById(String id);
	HAWB getHAWBById(String id);
	
	
}
